package com.yf.dao.article;

import com.yf.dao.BaseDao;
import com.yf.entity.ThumbUserEntity;
import com.yf.vo.ThumbBackVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 点赞人Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Aug 21 12:55:40 CST 2018
 */
public interface ThumbUserDao extends BaseDao<ThumbUserEntity> {
    List<ThumbUserEntity> queryLatestUser(Long article);

    /**
     * back 点赞记录
     * @param params
     * @return
     */
    List<ThumbBackVo> findThumbUserRecord(Map<String, Object> params);

    /**
     * 查询某个remnant
     * @param userId
     * @param articleId
     * @return
     */
    ThumbUserEntity findByUserIdAndArticleId(@Param("userId") Long userId, @Param("articleId") Long articleId);

}
